package com.heima.user.client;

import com.heima.common.dto.ResponseResult;
import com.heima.user.dto.WmUser;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-media")
@Api
public interface MediaFeign {

    @PostMapping
    @ApiOperation(value = "saveWmUser",notes = "新增一个自媒体人")
    @ApiImplicitParam(value = "wmUser",dataType = "WmUser")
    public ResponseResult<WmUser> saveWmUser(@RequestBody WmUser wmUser);


    @PostMapping
    @ApiOperation (value = "updateWmUser",notes = "更新一个自媒体人")
    @ApiImplicitParam(value = "wmUser",dataType = "WmUser")
    public ResponseResult<WmUser> updateWmUser(@RequestBody WmUser wmUser);
}
